Memory and observability for AI agents. Two lines of code to give any agent persistent memory and full trace visibility.
Project description
mnemo
Memory and observability for AI agents. Two lines of code.
from mnemo import MnemoClient
mnemo = MnemoClient(tenant_id="your-tenant")
result = mnemo.run(agent_id="my-agent", prompt="Hello, world!")
That's it. Your agent now has persistent memory and full trace visibility.
Install
pip install mnemo
# With all integrations
pip install mnemo[all]
# Pick what you need
pip install mnemo[anthropic,mem0,langfuse]
What happens when you call mnemo.run()
- Retrieves relevant memories from past runs
- Injects them into the prompt context
- Calls your LLM (Claude, OpenAI, or any custom function)
- Logs the full trace to Langfuse + OpenTelemetry
- Extracts new memories from the response
- Checks alert rules and fires if needed
- Returns the response — unchanged
Configuration
from mnemo import MnemoClient
from mnemo.client import LLMConfig
mnemo = MnemoClient(
tenant_id="acme-corp",
llm=LLMConfig(provider="anthropic", model="claude-sonnet-4-20250514"),
debug=True,
)
Or use environment variables:
export MNEMO_MEM0_API_KEY=your-key
export MNEMO_LANGFUSE_PUBLIC_KEY=your-key
export MNEMO_LANGFUSE_SECRET_KEY=your-key
export ANTHROPIC_API_KEY=your-key
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mnemo_sdk-0.1.0.tar.gz
(16.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
mnemo_sdk-0.1.0-py3-none-any.whl
(21.5 kB
view details)
File details
Details for the file mnemo_sdk-0.1.0.tar.gz.
File metadata
- Download URL: mnemo_sdk-0.1.0.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc4b17ec410de1eb0ea4c4d0d596a77eadddede5ec590a873afaf47ac5200e02
|
|
| MD5 |
be85ad1d8d42a6ba3b2f8b638dfde62d
|
|
| BLAKE2b-256 |
acc7e9255c71de98dbfd650b4a31b52f7e0787a842d388039bbcc49efd233b3d
|
File details
Details for the file mnemo_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mnemo_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
482951c993c3357747151ac3181338e0c6af8dbcc53e5983e4636d661fd8b109
|
|
| MD5 |
3d399d9ed39a5158148f0e89d63cf37f
|
|
| BLAKE2b-256 |
553c98da35ca0f5086a5d30bf81e95f81d42a26c7da825a7a68f1251b17d624c
|